ALV im Hintergrund?
 
        Wird eine mittels ALV programmierte Liste auch als Batchjob laufen, muss eine Vorkehrung getroffen werden. Hier zeigen wir Ihnen, was zu tun ist.
IF l_off IS INITIAL.
* –> Keine Hintergrundverarbeitung
* Objekt Custom_Container (Control auf dem Dynpro) “erwecken”
    CREATE OBJECT re_custom_container
           EXPORTING container_name = ‘CTRL_ALV’. “g_container.
  ENDIF.
* Objekt ALV auf dem Control “erwecken”
  CREATE OBJECT re_alv
    EXPORTING
      i_parent          = re_custom_container
  EXCEPTIONS
    error_cntl_create = 1
    error_cntl_init   = 2
    error_cntl_link   = 3
    error_dp_create   = 4
    others            = 5.
…
* Aufruf der Methode für ALV-OO-Ausgabe
  CALL METHOD re_alv->set_table_for_first_display
  EXPORTING
    is_variant                    = gs_variant
    i_save                        = ‘A’
    is_layout                     = gs_layout
    CHANGING
      it_outtab                   = itab
      it_fieldcatalog             = gt_fieldcat
  EXCEPTIONS
    invalid_parameter_combination = 1
    program_error                 = 2
    too_many_lines                = 3
    OTHERS                        = 4.
ENDIF.
- Automatisches Eingabefeld [SAPGUI] - 9. Oktober 2025
- So verhinderst du Jobstarts zur falschen Zeit - 15. September 2025
- [apple] iCloud-Photos herunterladen - 21. Juli 2025



